#include "MyTcpServer.h"
#include "MyTcpSocket.h"

MyTcpServer::MyTcpServer() {}

MyTcpServer &MyTcpServer::getInstance()
{
    static MyTcpServer instance;
    return instance;
}

void MyTcpServer::incomingConnection(qintptr socketDescriptor)
{
    qDebug() << "new client connect" ;
    MyTcpSocket *tcpSocket = new MyTcpSocket;
    tcpSocket->setSocketDescriptor(socketDescriptor);
}
